package com.tchy.cloud.entity;

import javax.persistence.*;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * Created by xiaoji on 2017/2/20.
 */
@Entity
@Table(name = "a_studio", schema = "", catalog = "")
public class AStudioEntity {
    private Long studioId;
    private String name;
    private String image;
    private String province;
    private String city;
    private String area;
    private String studioDesc;
    private String address;
    private String fields;
//    private Long creator;
    private AConsultantEntity consultantEntity;
    private Integer isReview;
    private Integer isAuth;
    private Date createTime;
    private Integer isRecom;
    private Integer finishNum;
    private Integer satisfiedNumber;
    private Integer noSatisfied;
    private Integer okSatisfied;
    private String authTag;
    private Integer sort;
    private String yyzz;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "studio_id")
    public Long getStudioId() {
        return studioId;
    }

    public void setStudioId(Long studioId) {
        this.studioId = studioId;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "image")
    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Basic
    @Column(name = "province")
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    @Basic
    @Column(name = "city")
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Basic
    @Column(name = "area")
    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    @Basic
    @Column(name = "studio_desc")
    public String getStudioDesc() {
        return studioDesc;
    }

    public void setStudioDesc(String studioDesc) {
        this.studioDesc = studioDesc;
    }

    @Basic
    @Column(name = "address")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Basic
    @Column(name = "field")
    public String getFields() {
        return fields;
    }

    public void setFields(String fields) {
        this.fields = fields;
    }

//    @Basic
//    @Column(name = "creator")
//    public Long getCreator() {
//        return creator;
//    }
//
//    public void setCreator(Long creator) {
//        this.creator = creator;
//    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "creator")
    public AConsultantEntity getConsultantEntity() {
        return consultantEntity;
    }

    public void setConsultantEntity(AConsultantEntity consultantEntity) {
        this.consultantEntity = consultantEntity;
    }

    @Basic
    @Column(name = "is_review")
    public Integer getIsReview() {
        return isReview;
    }

    public void setIsReview(Integer isReview) {
        this.isReview = isReview;
    }

    @Basic
    @Column(name = "is_auth")
    public Integer getIsAuth() {
        return isAuth;
    }

    public void setIsAuth(Integer isAuth) {
        this.isAuth = isAuth;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "is_recom")
    public Integer getIsRecom() {
        return isRecom;
    }

    public void setIsRecom(Integer isRecom) {
        this.isRecom = isRecom;
    }

    @Basic
    @Column(name = "finish_num")
    public Integer getFinishNum() {
        return finishNum;
    }

    public void setFinishNum(Integer finishNum) {
        this.finishNum = finishNum;
    }

    @Basic
    @Column(name = "satisfied_number")
    public Integer getSatisfiedNumber() {
        return satisfiedNumber;
    }

    public void setSatisfiedNumber(Integer satisfiedNumber) {
        this.satisfiedNumber = satisfiedNumber;
    }

    @Basic
    @Column(name = "no_satisfied")
    public Integer getNoSatisfied() {
        return noSatisfied;
    }

    public void setNoSatisfied(Integer noSatisfied) {
        this.noSatisfied = noSatisfied;
    }

    @Basic
    @Column(name = "ok_satisfied")
    public Integer getOkSatisfied() {
        return okSatisfied;
    }

    public void setOkSatisfied(Integer okSatisfied) {
        this.okSatisfied = okSatisfied;
    }

    @Basic
    @Column(name = "auth_tag")
    public String getAuthTag() {
        return authTag;
    }

    public void setAuthTag(String authTag) {
        this.authTag = authTag;
    }


    @Basic
    @Column(name = "sort")
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }


    @Basic
    @Column(name = "yyzz")
    public String getYyzz() {
        return yyzz;
    }

    public void setYyzz(String yyzz) {
        this.yyzz = yyzz;
    }
}
